package wrs.hcs.functions;

import java.io.IOException;
import jxl.read.biff.BiffException;
import org.openqa.selenium.WebDriver;


public class WebApp_Outpatient {

	public void wellness(WebDriver driver, String LastName, String pin, boolean guarantor) throws BiffException, IOException{
		
		//go to wellness reservation
		Miscellaneous m = new Miscellaneous();
		m.goto_wellness_webapp(driver);
		
		Web_App app = new Web_App();
		app.step_1(driver, "GC", "Single");
		app.step_2_single(driver, pin, LastName);
		app.step_3_single(driver, "basic", "outpatient", "suite");
		String email_address = m.get_xls_details();
		String finalDateInput = m.set_date_webapp();
		app.step_4_single(driver, email_address, finalDateInput, guarantor);
		app.step_5(driver);
		app.step_payment(driver, "visa");
		System.out.println("Single Outpatient Transaction Completed!");
		
	}
	
}
